//
//  TMCardTypeCell.m
//  国学商家管理
//
//  Created by Tao Li on 2018/6/29.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "TMCardTypeCell.h"
#import "TMPushModel.h"
@implementation TMCardTypeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setIsSystem:(BOOL)isSystem{
    _isSystem = isSystem;
    if (_isSystem == YES) {
        self.bankLabel.hidden = YES;
        self.titleLabel.hidden = NO;
        self.timeLabel.hidden = NO;
        self.nextImage.hidden = NO;
    }else{
        self.bankLabel.hidden = NO;
        self.titleLabel.hidden = YES;
        self.timeLabel.hidden = YES;
        self.nextImage.hidden = YES;
    }
}
-(void)setModel:(TMPushModel *)model{
    _model = model;
    self.titleLabel.text = model.alert;
//    if (model.number == nil) {
//        self.titleLabel.text = model.alert;
//    }else{
//        self.titleLabel.text = [NSString stringWithFormat:@"订单号:%@", model.number];
//    }
}
@end
